<script setup>
import { ref } from 'vue';

defineProps({
  msg: String,
});

const count = ref(0);
</script>

<template>
  <SvgIcon
    :iconName="'mdi:augmented-reality'"
    :customStyle="'width: 24px; height: 24px;color:red'"
  />
  <h1>{{ msg }}</h1>
  <el-icon :size="size" :color="color">
    <i-ep-HomeFilled />
  </el-icon>
  <i-ep-HomeFilled style="color: red; font-size: 24px" />
  <!-- 使用 Material Design 图标 -->
  <!--    进入目录 node_modules/@iconify/json/readme.md，远程查看图标-->
  <!--    进入目录 node_modules/@iconify/json/json，下的对应文件名配置到 vite.config.js文件中，例如：mdi-->
  <!--    mdi → Material Design Icons-->
  <!--    fa → FontAwesome-->
  <i-mdi-home style="color: skyblue; font-size: 24px" />
  <i-fa-home style="color: yellow; font-size: 24px" />
  <i-mdi-home style="color: blue; font-size: 24px" />
  <i-mdi-abacus style="color: green; font-size: 24px" />
  <i-mdi-access-point-minus style="color: pink; font-size: 24px" />
  <i-mdi-airplane-alert style="color: pink; font-size: 24px" />
  <i-fa-ambulance style="color: pink; font-size: 24px" />
  <div class="card">
    <button type="button" @click="count++">count is {{ count }}</button>
    <p>
      Edit
      <code>components/HelloWorld.vue</code> to test HMR
    </p>
  </div>

  <p>
    Check out
    <a href="https://vuejs.org/guide/quick-start.html#local" target="_blank">create-vue</a>, the
    official Vue + Vite starter
  </p>
  <p>
    Learn more about IDE Support for Vue in the
    <a href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support" target="_blank"
      >Vue Docs Scaling up Guide</a
    >.
  </p>
  <p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
</template>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
